let c=4;
const addx=x=>n=>n+x;
const addThree=addx(3);
let d=addThree(c);
console.log(d);